import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    currentNav:[],
    navList: [
      {
        id: "1",
        title: "会议信息", icon:"chat",
        navTo: [
          { id: "1-1", title: "会议信息配置", path: "/meetinginfoconfigure", icon:"list"},
          {
            id: "1-2",
            title: "名单收集模版_首页",
            path: "/meetingcollecthome", icon:"list",
          },
          { id: "1-3", title: "名单收集模版", path: "/meetingcollectmood",  icon:"list"},
        ],
      },
      {
        id: "2",
        title: "名单收集",
		 icon:"download",
        navTo: [
          { id: "2-1", title: "新建HCP", path: "../newHcp/newHcp" , icon:"plusempty"},
          { id: "2-2", title: "已提交", path: "../submitlist/submitlist" , icon:"upload"},
          { id: "2-3", title: "草稿箱", path: "../sketch/sketch", icon:"bars" },
        ],
      },
      {
        id: "3",
        title: "审批单", icon:"paperclip",
        navTo: [
          { id: "3-1", title: "审批列表", path: "/approvallist" , icon:"compose"},
          { id: "3-2", title: "审批单明细", path: "/approvaldetail",  icon:"compose"},
          { id: "3-3", title: "已结束会议", path: "/approvalfreelist",  icon:"compose"},
        ],
      },
    ]
  },
  mutations: {
    changeCurrentNav(state,current){
      state.currentNav = current
    }
  },
  actions: {},
  modules: {},
});
